Skip to content

Adds line number to unexpectedToken syntax error#9

Open
dyouberg wants to merge 1 commit intoepoberezkin:masterfrom
dyouberg:line-number
Open

Adds line number to unexpectedToken syntax error#9
dyouberg wants to merge 1 commit intoepoberezkin:masterfrom
dyouberg:line-number

Conversation

@dyouberg
Copy link
Copy Markdown

When utilizing json-source-map to validate JSON - I wanted to display invalid JSON errors to the user at the specific line at which it occurred, but noticed that the syntax errors that were being thrown only passed in the position and not the line number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant